//
//  LGDiscover.h
//  lgdw
//
//  Created by Apple on 15/12/8.
//  Copyright © 2015年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface LGDiscover : NSObject
/*
 avatar = "http://www.duwu.me/public/static/images/default_avatar.jpg"; // 发表者头像
 color = 15b1f2;
 "color_type" = 1;
 "comment_num" = 4; //评论
 "create_time" = 1449546420;
 description = "\U547c\U53ebWacom\U53c2\U6218\Uff0c\U91cd\U590d\U4e00\U904d\Uff0c\U547c\U53ebWacom\U53c2\U6218";
 id = 537;
 image = "http://imgs.duwu.me/duwu/doc/cover/201512/08/173206523140.jpg"; // 大图
 "like_num" = 0; // 点赞
 "like_status" = 0;
 name = lishuhang; 发布者
 "share_url" = "http://m.duwu.me/doc/info/537/1.html";
 title = "\U94c5\U7b14\U3001\U4e2d\U6027\U7b14\U548c\U8bb0\U53f7\U7b14:\U6bd4\U8f83Apple Pencil\U3001Surface Pro\U89e6\U63a7\U7b14\U548c53 Pencil";
 "user_id" = 7099;
 "user_type" = 0;
 */
/** 大图url  */
@property (nonatomic, copy) NSString *image;
/** 标题文字  */
@property (nonatomic, copy) NSString *title;
/** 发布者图片 url  */
@property (nonatomic, copy) NSString *avatar;
/** 发布者姓名  */
@property (nonatomic, copy) NSString *name;
/** 点赞数  */
@property (nonatomic, assign) NSNumber *like_num;
/** 评论数  */
@property (nonatomic, assign) NSNumber *comment_num;
/** 跳转的页面  */
@property (nonatomic, copy) NSString *share_url;

/** 字典转模型  */
+ (instancetype)discoverWithDict:(NSDictionary *)dict;

///发送异步请求，获取数据，字典转模型
+ (void)DiscoverListWithSuccessBlock:(void(^)(NSArray *array))successBlock errorBlock:(void(^)(NSError *error))errorBlock;

@end
